# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-mmh3
_pkgname=mmh3
pkgver=5.1.0
pkgrel=1
pkgdesc='Python wrapper for MurmurHash (MurmurHash3), a set of fast and robust hash functions.'
arch=('any')
url='https://pypi.org/project/mmh3/#files'
license=('custom:CC0 1.0')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('f91ab26942ae5e3c69d27e0324b541fc83012b2b27be7f3040b76ceea93df1f72622b894507e6103b32e0da1a8048a216b89d625f75d87471cc9a9e2e9b668a0')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

